<template>
	<view class="msgDetail">
		<!-- #ifdef APP-PLUS -->
		<Hearder :name="'消息详情'"></Hearder>
		<!-- #endif -->
		<view class="tit">{{info.title}}</view>
		<rich-text class="msginfo" :nodes="info.content"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {     
		  return {
			id:'',
			info:{}
		  };
		},
		onLoad (options) {
			this.id= options.id
			this.request('/notice/getNoticeInfo',{id:this.id}).then((res) => {
				  if(res.data.code==1){
					  this.info=res.data.data
					  this.info.content=res.data.data.content.replace(/\<img/gi,'<img class="rich-img" ' );
				  }
				  else{
					this.$tip(res.data.msg)
				  }
			})
		},
		components: {
		},
	}
</script>

<style scoped lang="scss">
	.msgDetail{
		width: 94%;
		margin: 0 3%;
	}
	.msginfo{
		font-size: 24rpx;
		line-height: 36rpx;
	}
	.tit{
		text-align: center;
		font-size: 26rpx;
		font-weight: 700;
		padding: 30rpx 0;
	}
</style>
